<div class="layui-row">
    <div class="layui-col-md8">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('login.support') }}</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="support" value="1" title="{{ __('login.method_username_passwd') }}"
                           checked disabled>

                    {% for key,item in support_login_method %}
                        <input type="checkbox" name="support" value="{{ key }}" title="{{ item }}"
                               {% if key in setting.login.support %}checked{% endif %}>
                    {% endfor %}

                </div>
                <div class="layui-form-mid layui-word-aux">
                    {{ __('login.support_tip') }}
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('login.together') }}</label>
                <div class="layui-input-block">
                    <input type="radio" name="together" value="1" title="{{ __('switch.yes') }}"
                           {% if setting.login.together %}checked{% endif %}>
                    <input type="radio" name="together" value="0" title="{{ __('switch.no') }}"
                           {% if not setting.login.together %}checked{% endif %}>
                </div>
                <div class="layui-form-mid layui-word-aux">
                    {{ __('login.together_tip') }}
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('login.effective_duration') }}</label>
                <div class="layui-input-group layui-input-block">
                    <input type="number" class="layui-input" name="effective_hour" max="86400"
                           value="{{ setting.login.effective_hour|default(28800) }}" lay-affix="number">
                    <div class="layui-input-split layui-input-suffix" style="cursor: pointer;">
                        <i class="layui-icon layui-icon-time"></i>
                    </div>
                </div>
                <div class="layui-input-block layui-form-mid layui-word-aux">
                    {{ __('login.effective_duration_tip') }}
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"> {{ __('login.ip_whitelist') }}</label>
                <div class="layui-input-block">
                    <textarea name="white_list" placeholder="{{ __('enter') }}{{ __('login.ip_whitelist') }}"
                              class="layui-textarea">{{ setting.login.white_list }}</textarea>
                </div>
                <div class="layui-input-block layui-form-mid layui-word-aux">
                    {{ __('login.ip_whitelist_tip') }}
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"> {{ __('login.mac_whitelist') }}</label>
                <div class="layui-input-block">
                        <textarea name="mac_list" placeholder="{{ __('enter') }}{{ __('login.mac_whitelist') }}"
                                  class="layui-textarea">{{ setting.login.mac_list }}</textarea>
                </div>
                <div class="layui-input-block layui-form-mid layui-word-aux">
                    {{ __('login.mac_whitelist_tip') }}
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit lay-filter="login">
                    {{ __('btn.save') }}
                </button>
            </div>
        </form>
    </div>
</div>
